package com.dao;

import com.bean.History;

import java.util.List;

public interface HistoryDao {

//    public History querHistoryViedoIdAndUserId(Integer viedoId,Integer UserId);

    //前台根据用户id查询历史记录
//    public int querHistory(Integer viedoId,Integer userId);
    public  List<History> querHistoryByUserId(Integer userId);
    //前台根据用户id和视频id查找历史记录
    public History frontFindByUidAndVideoId(Integer viedoId,Integer userId);
    //前台更新历史记录
    public int frontUpdate(History history);
    //前台保存历史记录

    int frontSave(Integer userId, Integer viedoId, Double watchTime);
}
